﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" AutoEventWireup="false" CodeFile="ManageMOIExport.aspx.vb" Inherits="WebForm_ManageMOIExport" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<%@ Register src="~/WebForm/ManageMOIExport/HonorCertControl.ascx" tagname="HonorCertControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/TrainingHourControl.ascx" tagname="TrainingHourControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/VBookControl.ascx" tagname="VBookControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/VolunteerInsuranceControl.ascx" tagname="VolunteerInsuranceControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/WorkHourControl.ascx" tagname="WorkHourControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/VBasicDataControl.ascx" tagname="VolunteerControl" tagprefix="My" %>

<%@ Register src="~/WebForm/ManageMOIExport/EmployeeControl.ascx" tagname="ManagerControl" tagprefix="My" %>
<%@ Register src="~/WebForm/ManageMOIExport/OrganizationControl.ascx" tagname="OrganizationControl" tagprefix="My" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width="100%" align="Center">
        <tr>
            <td align="center">
                <asp:Label ID="Title" runat="server" SkinID="title" meta:resourcekey="Title"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">
              <a id="aMOI" runat="server" href="http://vols.moi.gov.tw/" 
               meta:resourcekey="aMOI" style="font-size: 9pt" target="_blank"></a>  
            </td>
        </tr>
        <tr>
            <td>
                <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" >
                    <ajaxToolkit:TabPanel ID="VolunteerDataTabPanel" runat="server" HeaderText="<%$ Resources:VolunteerData %>">
                        <ContentTemplate>
                        <table width="100%">
                            <tr>
                                <td>
                                    <uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" />
                                </td>
                                <td valign="bottom">
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label runat="server" Text="<%$ Resources:DataType %>"></asp:Label>
                                    &nbsp;<asp:DropDownList ID="ddlVolunteerDataType" runat="server"></asp:DropDownList>
                                </td>
                                <td valign="bottom">
                                    <asp:Button ID="btnVolunteerQuery" runat="server" Text="<%$ Resources:Query %>" />
				                    <asp:Button ID="btnVolunteerUpload" runat="server" Text="<%$ Resources:Upload %>" />
				                    <asp:Button ID="btnExport" runat="server" Text="<%$ Resources:Export %>" />
                                </td>
                            </tr>   
                            <tr>
                                <td colspan="2">
                                     <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                                        <asp:View ID="vwNothing1" runat="server"></asp:View>
                                        <asp:View ID="vwHonorCert" runat="server">
                                            <My:HonorCertControl ID="HonorCertControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwVolunteerInsurance" runat="server">
                                            <My:VolunteerInsuranceControl ID="VolunteerInsuranceControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwWorkHour" runat="server">
                                            <My:WorkHourControl ID="WorkHourControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwVBook" runat="server">
                                            <My:VBookControl ID="VBookControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwTrainingHour" runat="server">
                                            <My:TrainingHourControl ID="TrainingHourControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwVolunteer" runat="server">
                                            <My:VolunteerControl ID="VolunteerControl1" runat="server"/>
                                        </asp:View>
                                    </asp:MultiView>
                                </td>
                            </tr>                              
                        </table>

                        </ContentTemplate>
                    </ajaxToolkit:TabPanel>
                    <ajaxToolkit:TabPanel ID="OrganizationDataTabPanel" runat="server" HeaderText="<%$ Resources:OrganizationData %>">
                        <ContentTemplate>
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:Label ID="lblOrg" runat="server" Text="所屬單位"></asp:Label>
                                    <asp:DropDownList ID="ddlOrg" runat="server"></asp:DropDownList>
                                </td>
                                <td valign="bottom">
                                
                                </td>
                            </tr>
                            <tr>
                                <td><asp:Label runat="server" Text="<%$ Resources:DataType %>"></asp:Label>
                                    <asp:DropDownList ID="ddlOrganizationDataType" runat="server"></asp:DropDownList>
                                </td>
                                <td valign="bottom">
                                    <asp:Button ID="btnOrganizationQuery" runat="server" Text="<%$ Resources:Query %>" />
				                    <asp:Button ID="btnOrganizationUpload" runat="server" Text="<%$ Resources:Upload %>" />
                                    <asp:Button ID="btnOrganizationExport" runat="server" Text="<%$ Resources:Export %>" />
                                </td>
                            </tr>   
                            <tr>
                                <td colspan="2">
                                     <asp:MultiView ID="MultiView2" runat="server" ActiveViewIndex="0">
                                        <asp:View ID="vwNothing2" runat="server"></asp:View>
                                        <asp:View ID="vwManager" runat="server">
                                            <My:ManagerControl ID="ManagerControl1" runat="server"/>
                                        </asp:View>
                                        <asp:View ID="vwOrganization" runat="server">
                                            <My:OrganizationControl ID="OrganizationControl1" runat="server"/>
                                        </asp:View>
                                    </asp:MultiView>
                                </td>
                            </tr>                              
                        </table>
                        </ContentTemplate>
                    </ajaxToolkit:TabPanel>
               </ajaxToolkit:TabContainer>
            </td>
        </tr>
    </table>
</asp:Content>

